import request from '@/utils/request'

// 查询变压器监测列表
export function listNyTransAllowCheck(query) {
  return request({
    url: '/energy/nyTransAllowCheck/list',
    method: 'get',
    params: query
  })
}

// 查询变压器监测详细
export function getNyTransAllowCheck(id) {
  return request({
    url: '/energy/nyTransAllowCheck/' + id,
    method: 'get'
  })
}

// 新增变压器监测
export function addNyTransAllowCheck(data) {
  return request({
    url: '/energy/nyTransAllowCheck',
    method: 'post',
    data: data
  })
}

// 修改变压器监测
export function updateNyTransAllowCheck(data) {
  return request({
    url: '/energy/nyTransAllowCheck',
    method: 'put',
    data: data
  })
}

// 删除变压器监测
export function delNyTransAllowCheck(id) {
  return request({
    url: '/energy/nyTransAllowCheck/' + id,
    method: 'delete'
  })
}
